Skip to content

fix(api-search): make operationId the leading default column - #238

Merged
jpage-godaddy merged 2 commits into
mainfrom
better-search-results
Aug 31, 2026
Merged

fix(api-search): make operationId the leading default column#238
jpage-godaddy merged 2 commits into
mainfrom
better-search-results

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • gddy api search rows for shared domain/method/path (notably GraphQL sub-operations under one wrapper endpoint) rendered as visually identical rows since operationId — the one field that's actually unique per row — wasn't part of the default column set.
  • Add operationId as the first default column so it's the highest-priority column and the last one dropped when a row doesn't fit the terminal width, and tighten the command's --help long description.

Test plan

  • cargo check
  • cargo clippy -- -D warnings
  • cargo test
  • cargo fmt --check
  • ./rust/scripts/check-module-size.sh
  • Manually ran gddy api search catalog and confirmed operationId now distinguishes previously-identical-looking rows

Rows for the same domain/method/path (e.g. many GraphQL sub-operations
sharing one wrapper endpoint) rendered identically since operationId
wasn't part of the default column set. Lead with it so it's the last
column dropped when a row doesn't fit the terminal width.
Copilot AI lite review requested due to automatic review settings August 28, 2026 20:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates gddy api search output defaults so results are distinguishable when multiple endpoints share the same domain/method/path (e.g., GraphQL sub-operations), and refines the command’s help text.

Changes:

  • Adds operationId as the leading default output column for api search.
  • Tightens the api search --help long description.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rust/src/api_explorer/search.rs
The shortened long description dropped mention of summaries, but
search_endpoints still matches against summary text — the help was
out of sync with actual behavior.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@jpage-godaddy
jpage-godaddy merged commit 6546339 into main Aug 31, 2026
5 checks passed
@jpage-godaddy
jpage-godaddy deleted the better-search-results branch August 31, 2026 23:42
This was referenced Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants